INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})

SET(TARGET_H
    apiDoc.h
    plugin.h
    timer/GFSFetcher.h
)

SET(TARGET_SRC
	plugin.cpp
    WeatherControler.cpp
    timer/GFSFetcher.cpp
)

SETUP_GROUP()

SET(TARGET_ADDED_LIBRARIES
    drogon
    trantor
    yaml-cpp
    OCVolume
    OCGrib
    OCNetCDF
)

IF(WIN32)
SET(TARGET_EXTERNAL_LIBRARIES 
    ws2_32
)
ENDIF(WIN32)

SETUP_PLUGIN(ControllerWeatherService)
SETUP_PLUGIN_DEP(ControllerWeather OCMain)
SETUP_PLUGIN_DEP(ControllerWeather OCGrib)
SETUP_PLUGIN_DEP(ControllerWeather OCVolume)
SETUP_PLUGIN_DEP(ControllerWeather OCServer)
